package com.huadao.cart_ccs.data.bo;

import com.huadao.cart_ccs.R;
import com.huadao.cart_ccs.main.CartApplication;

/**
 * 培养罐电机
 */
public class CultureTankBO extends VacuumPumpBO {

    public static final byte VacuumPump_cultureTank = 0x1;//培养罐电机

    private int speed;

//    public static final byte stop = (byte) 0xAA;//停止
//    public static final byte star = (byte) 0xCC;//启动

    public CultureTankBO() {
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    @Override
    protected String getOrderStr() {
        String orderStr = null;
        if (order == star) {
            orderStr = CartApplication.getInstance().getString(R.string.star);
        } else if (order == stop) {
            orderStr = CartApplication.getInstance().getString(R.string.stop);
        }
        return orderStr;
    }

    @Override
    protected String getOrderContentStr() {
        if (order == stop) {
            return "";
        }
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("转速:");
        stringBuilder.append(speed);
        return stringBuilder.toString();
    }

    @Override
    public String getModularNOStr() {
        return CartApplication.getInstance().getString(R.string.cultureTankElectric);
    }
}
